-- GENERATED SPELL FOR [Bonechewer Riding Wolf] --


function spell0_18706(pUnit, Event) --@Festering Bite,n/a--
pUnit:FullCastSpellOnTarget(16460,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18706', 20255, 1)
end

function spell1_18706(pUnit, Event) --@Furious Howl,n/a--
pUnit:FullCastSpellOnTarget(3149,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18706', 15000, 1)
end

function Sorts_18706(pUnit, Event)
local choix_sorts_18706 = math.random(0, 1)
if choix_sorts_18706 == 0 then
pUnit:RegisterEvent('spell0_18706', 1, 1)
end
if choix_sorts_18706 == 1 then
pUnit:RegisterEvent('spell1_18706', 1, 1)
end
end

function mob18706_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18706', math.random(1500, 3000), 1)
end

function mob18706_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18706_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18706_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18706, 1, 'mob18706_Action')
RegisterUnitEvent(18706, 2, 'mob18706_Leave')
RegisterUnitEvent(18706, 3, 'mob18706_Kill')
RegisterUnitEvent(18706, 4, 'mob18706_Die')
